package cn.edu.sgu.www.mhxysy.dto.chongwu;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuInitZizhiDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 资质类型
	 * 0-野生；1-宝宝；2-变异
	 */
	@Range(min = 0, max = 2, message = "资质类型" + CustomMessages.ILLEGAL)
	@ApiModelProperty(value = "资质类型")
	private Integer type;

	/**
	 * 攻击资质
	 */
	@Positive(message = "攻击资质" + CustomMessages.ILLEGAL)
	@NotNull(message = "攻击资质" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "攻击资质", required = true)
	private Integer gjzz;

	/**
	 * 防御资质
	 */
	@Positive(message = "防御资质" + CustomMessages.ILLEGAL)
	@NotNull(message = "防御资质" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "防御资质", required = true)
	private Integer fyzz;

	/**
	 * 体力资质
	 */
	@Positive(message = "体力资质" + CustomMessages.ILLEGAL)
	@NotNull(message = "体力资质" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "体力资质", required = true)
	private Integer tlzz;

	/**
	 * 法力资质
	 */
	@Positive(message = "法力资质" + CustomMessages.ILLEGAL)
	@NotNull(message = "法力资质" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "法力资质", required = true)
	private Integer flzz;

	/**
	 * 速度资质
	 */
	@Positive(message = "速度资质" + CustomMessages.ILLEGAL)
	@NotNull(message = "速度资质" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "速度资质", required = true)
	private Integer sdzz;

	/**
	 * 宠物成长
	 */
	@Range(min = 0, max = 1300, message = "宠物成长" + CustomMessages.ILLEGAL)
	@ApiModelProperty(value = "宠物成长", required = true)
	private Integer chengzhang;

	/**
	 * 宠物类型ID
	 */
	@ApiModelProperty(value = "宠物类型ID")
	private Integer chongwuId;

	/**
	 * 资质名称
	 */
	@ApiModelProperty(value = "资质名称")
	private String name;

	/**
	 * 参战等级
	 * 特殊宠物的该字段才有值
	 */
	@ApiModelProperty(value = "参战等级")
	private Integer fightGrade;

	/**
	 * 特殊资质
	 */
	@ApiModelProperty(value = "特殊资质")
	private Integer specialType;

	/**
	 * 提升次数
	 */
	@ApiModelProperty(value = "提升次数")
	private Integer improveTimes;

	/**
	 * 技能数量
	 */
	@ApiModelProperty(value = "技能数量")
	private Integer skillQuantity;

	/**
	 * 内丹数量
	 */
	@ApiModelProperty(value = "内丹数量")
	private Integer neidanQuantity;
}